//
//  FindKonwlegeCell.m
//  0000327App
//
//  Created by user on 16/3/29.
//  Copyright © 2016年 MoreMoney. All rights reserved.

#import "FindModel.h"
#import "FindKonwlegeCell.h"
#import "UIImageView+WebCache.h"

@interface FindKonwlegeCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabelm;
@property (weak, nonatomic) IBOutlet UILabel *timeLabelm;
@property (weak, nonatomic) IBOutlet UIImageView *imageViewm;
@property (weak, nonatomic) IBOutlet UILabel *detailLabelm;

@end

@implementation FindKonwlegeCell
- (void)setFrame:(CGRect)frame
{
    frame.size.height -= 10;
    
    [super setFrame:frame];
}
- (void)setModel:(FindModel *)model
{
    _model = model;
    
    self.titleLabelm.text = model.title;
    self.timeLabelm.text = model.time;
    
    UIImage *image;
    if ([UIImage imageNamed:@"yellow"]) {
        image = [UIImage imageNamed:@"yellow"];
    }
    
    [self.imageViewm sd_setImageWithURL:model.imageURL placeholderImage:image];
    self.detailLabelm.text = model.detailTitle;
}



@end
